package com.cyh.ebpttoolswar.commmon;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
/**
 * @Author cyh
 * @Date 2022-01-23
 * @Description 动态数据源
 * AbstractRoutingDataSource
 */
public class DynamicDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicDataSourceContextHolder.getDataSourceType();
    }
}
